<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package bizwebsky
 */

get_header(); ?>

<div class="blog-page container">

	<div class="col-md-8 col-sm-8 main-content">
		<div class="slider">

		</div>
		<!-- end .slider -->

		<div class="title_news clearfix">
			<div class="rss-link"><a href="http://bizwebsky.com/feed/" target="_blank"><img src="<?php bloginfo('template_url'); ?>/img/icon/rss.jpg"></a></div>
			<h2>Bài viết mới</h2>
		</div>

		<?php if (have_posts()) : ?>

			<?php /* Start the Loop */ ?>
			<?php while (have_posts()) : the_post(); ?>

				<?php
				get_template_part('template-parts/content', 'single');
				?>

			<?php endwhile; ?>
		<?php endif; ?>
	</div>
	<!-- #main -->
	<!-- sidebar -->
	<div class="col-md-4 col-sm-4  sidebar">
		<?php
		if(is_active_sidebar("main-sidebar")):
			dynamic_sidebar("main-sidebar");
		endif;
		?>
	</div>
</div><!-- #primary -->
<?php get_footer(); ?>
